﻿using System;

namespace ArtemisExtensions
{
    public class GenericTime
    {
        private const int iotaPerHour = 250;

        /// <summary>
        /// Marks and measures the units of time used
        /// </summary>
        /// <remarks>
        /// 1 unit of time = iota
        /// iotaperhour iota = 1 hour
        /// 24 h = 1 day
        /// ... so on
        /// </remarks>
        public Int64 Time
        {
            get;
            protected set;
        }

        public void Increment()
        {
            Time++;
        }

        public bool IntervalActivate(int interval)
        {
            return (Time % interval) == 0;
        }
    }
}